package top.yekongle.jasypt.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yekongle.jasypt.entity.User;
import top.yekongle.jasypt.mapper.TestMapper;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class IndexController {
    @Resource
    TestMapper testMapper;

    @GetMapping("/test")
    public List<User> getUserInfo() {
        return  testMapper.listUser();
    }
}
